package com.gjy.design.bridge.factory;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-10 09:28:36
 */
public class FilePersist implements DataPersist {

    private final String path;

    public FilePersist(String path) {
        this.path = path;
    }

    @Override
    public void persist(String data) {
        System.out.println("写入文件 " + path + " => " + data);
    }

}
